package com.zhangxu.microservice.system.web.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 分配角色请求
 */
@Data
@Schema(description = "分配角色请求")
public class AssignRoleReq {

    /**
     * 员工 ID
     */
    @NotNull(message = "员工ID不能为空")
    @Schema(description = "员工ID", example = "1")
    private Long employeeId;

    /**
     * 角色 ID 列表
     */
    @NotEmpty(message = "角色ID列表不能为空")
    @Schema(description = "角色ID列表", example = "[1, 2, 3]")
    private List<Long> roleIds;
}